package com.hitqz.robot.api.business.model.vo.roboMap;

import com.hitqz.robot.api.business.enums.MapTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * @author xupkun
 * @date 2024/5/29
 */
@Schema(description = "地图返回模型")
public class RobotMapVo implements Serializable {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "地图名称")
    private String mapName;

    @Schema(description = "地图编码")
    private String mapCode;

    @Schema(description = "地图参数")
    private float mapOriginx;

    @Schema(description = "地图参数")
    private float mapOriginy;

    @Schema(description = "地图参数")
    private float mapResolution;

    @Schema(description = "1-2D地图，2-3D地图，3-轨道模型图，4-二维码虚拟地图，5-其他")
    private String type;

    @Schema(description = "类型描述")
    private String typeStr;

    @Schema(description = "文件地址")
    private String filePath;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMapName() {
        return mapName;
    }

    public void setMapName(String mapName) {
        this.mapName = mapName;
    }

    public String getMapCode() {
        return mapCode;
    }

    public void setMapCode(String mapCode) {
        this.mapCode = mapCode;
    }

    public float getMapOriginx() {
        return mapOriginx;
    }

    public void setMapOriginx(float mapOriginx) {
        this.mapOriginx = mapOriginx;
    }

    public float getMapOriginy() {
        return mapOriginy;
    }

    public void setMapOriginy(float mapOriginy) {
        this.mapOriginy = mapOriginy;
    }

    public float getMapResolution() {
        return mapResolution;
    }

    public void setMapResolution(float mapResolution) {
        this.mapResolution = mapResolution;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getTypeStr() {
        return MapTypeEnum.CMD_MAP_TYPE.get(String.valueOf(type)).getDesc();
    }

    public void setTypeStr(String typeStr) {
        this.typeStr = typeStr;
    }
}
